package com.oa.entity;

import java.util.HashSet;
import java.util.Set;


/**
 * @author FengMengHuo
 * 这是个 权限类
 * 权限类  多<-->多 角色（岗位）
 * 权限 多<-->一 父权限（上级）
 * 权限 一<-->多 子权限（下级）
 */
public class Power {
	private String unique_id; // 权限ID
	private String power_url; // 权限URL
	private String power_name; // 权限名称
	private Set<Post> postSet = new HashSet<Post>(); //对应的角色（岗位）
	
	private Power power_parent ; //父权限
	private Set<Power> power_children = new HashSet<Power>(); //子权限
	
	public Power() {
	}
	
	
	//========================================get,set================
	
	public Power(String power_name, String power_url, Power power_parent) {
		this.power_name = power_name;
		this.power_url = power_url;
		this.power_parent = power_parent;
	}

	
	public String getUnique_id() {
		return unique_id;
	}
	public void setUnique_id(String unique_id) {
		this.unique_id = unique_id;
	}
	public String getPower_url() {
		return power_url;
	}
	public void setPower_url(String power_url) {
		this.power_url = power_url;
	}
	public String getPower_name() {
		return power_name;
	}
	public void setPower_name(String power_name) {
		this.power_name = power_name;
	}
	public Set<Post> getPostSet() {
		return postSet;
	}
	public void setPostSet(Set<Post> postSet) {
		this.postSet = postSet;
	}
	public Power getPower_parent() {
		return power_parent;
	}
	public void setPower_parent(Power power_parent) {
		this.power_parent = power_parent;
	}
	public Set<Power> getPower_children() {
		return power_children;
	}
	public void setPower_children(Set<Power> power_children) {
		this.power_children = power_children;
	}
	
}
